SRCS := $(wildcard *.c /home/playba/gitLibrary/test_net-disk3/net-disk3/command/*.c)
OBJS := $(patsubst %.c,%.o,$(SRCS))
OUT := server
CC := gcc
COM_OP := -g -Wall -O0
.PHONY: clean rebuild all

all : $(OUT)
$(OUT) : $(OBJS) 
	$(CC) $^ -o $@ -lpthread -lcrypt -lmysqlclient -ll8w8jwt -lssl -lcrypto
%.o : %.c 
	$(CC) -c $^ -o $@ -g $(COM_OP)

clean:
	$(RM) $(OUT) $(OBJS)
rebuild: clean all
